package org.budo.weixin.work;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;

/**
 * 微信SAAS第三方回调协议数据返回bean see
 * http://qydev.weixin.qq.com/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E6%96%B9%E5%9B%9E%E8%B0%83%E5%8D%8F%E8%AE%AE
 */
@Getter
@Setter
public class WeixinSaasCallBackInfo implements Serializable {
    private static final long serialVersionUID = 6380323425146893697L;

    public static final String SUITE_TICKET = "suite_ticket";

    public static final String CHANGE_AUTH = "change_auth";

    public static final String CANCEL_AUTH = "cancel_auth";

    public static final String CREATE_AUTH = "create_auth";

    public static final String CONTACT_SYNC = "contact_sync";

    private String suiteId;

    private String infoType;

    private Long timeStamp; // 时间戳

    private String suiteTicket; // Ticket内容

    private String authCode; // 授权的auth_code,用于获取企业的永久授权码

    private String authCorpId;// 授权方企业号的corpid

    private Integer seq;// 当前序号

    public WeixinSaasCallBackInfo() {
    }

    public WeixinSaasCallBackInfo(String suiteId, Long timeStamp, String infoType) {
        this.suiteId = suiteId;
        this.timeStamp = timeStamp;
        this.infoType = infoType;
    }
}
